#ifndef __SVC_TIMER_H__
#define __SVC_TIMER_H__

#include "stdint.h"
#include "pt_timer.h"


#ifdef __cplusplus
extern "C" {
#endif

int32_t _svc_timer_expired(struct timer *t);
int32_t sub_timer_expired(struct timer *t);
#define timer_expired	sub_timer_expired
	
void _svc_timer_set(struct timer *t, int usecs);
void sub_timer_set(struct timer *t, int usecs);	
#define timer_set 	sub_timer_set
	
pt_timer_t _svc_timer_create(	void (*timeout)(void *parameter),
								void       *parameter,
								uint32_t   time,
								uint8_t  flag);
pt_timer_t sub_timer_create(	void (*timeout)(void *parameter),
								void       *parameter,
								uint32_t   time,
								uint8_t  flag);
#define timer_create 	sub_timer_create								
								
#ifdef __cplusplus
}
#endif
#endif  // __SVC_TIMER_H__
